package com.hmall.item.mapper;

import com.hmall.category.pojo.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author mengjie
 */
@Mapper
public interface CategoryMapper {
    //查询分类列表
    List<Category> queryByPage(int start, int size);

    //查询分类数量
    long count();

    int deleteById(Long id);

    void update(Category category);

    void insert(Category category);
}
